#include<stdio.h>
struct student
{
    int num;
    char name[20];
    float score;
};
int main()
{
    struct student stu[5]={
    {86110,"zhang",78},
    {86112,"wang",96.5},
    {86114,"li",85},
    {86116,"zhao",72.5},
    {86118,"sun",99.5}};
    struct student temp;
    const int n=5;
    int i,j,k;
    for(i=0;i<n-1;i++)
    {
        k=i;
        for(j=i+1;j<n;j++)
            if(stu[j].score>stu[k].score)
            k=j;
        if(k!=i);
        {
            temp=stu[k];
            stu[k]=stu[i];
            stu[i]=temp;
        }
    }
    for(i=0;i<n;i++)
        printf("%6d%8s%6.2f\n",stu[i].num,stu[i].name,stu[i].score);
    return 0;
}
